package com.ftg.learn.chapter17;

import com.ftg.learn.chapter17.queue.MyQueue;
import com.ftg.learn.chapter17.queue.MyQueueImple;
import org.junit.Test;

/**
 * @author KangJx
 * @date 2021/8/6
 */
public class MyQueueImpleTest {

    @Test
    public void test1(){

        MyQueue<Integer> my = new MyQueueImple<>();
//        System.out.println(my.peek());
//        System.out.println(my.element());
        my.add(23);
        my.add(45);



        System.out.println(my.poll());
        System.out.println(my.poll());
        System.out.println(my.poll());

    }

}
